package com.example.cycledependency;

import org.springframework.beans.factory.annotation.Autowired;

public class InstanceA implements IApi{
    @Autowired
    private InstanceA instanceA;

    public InstanceA(InstanceA instanceA) {
        this.instanceA = instanceA;
    }

    public InstanceA getInstanceA() {
        return instanceA;
    }

    public void setInstanceA(InstanceA instanceA) {
        this.instanceA = instanceA;
    }

    @Override
    public void execute() {
        System.out.println("i am instanceA");
    }
}
